<div id="blokreg">
    <div id="formreg">
        <ul class="nav nav-pills nav-stacked">
            <li class="active"><a href=""><p align="left">Register</p></a></li>

        </ul>
        <?php echo form_open('login/create') ?>
        <?php 
            if($this->uri->segment(3) == 'duplicate'){
                echo"<font color='red'>Duplicate Username</font>";
            }
            
            
            ?>
        <table>
            <thead>
                <!--<tr ><label><strong>Form Register</strong></label></tr>-->
            </thead>
            <tbody>
                <tr>
                    <td style="width:180px;">Nama depan:<font color="#CA0000">*</font></td>
                    <td><font color="red"><?php echo form_error('name'); ?></font><?php echo form_input('name', $name) ?></td>
                </tr>
                <tr>
                    <td>Nama Belakang:</td>
                    <td></font><?php echo form_input('last_name', $last_name) ?></td>
                </tr>
                <tr>
                    <td>Username:<font color="#CA0000">*</font></td>
                    <td><font color="red"><?php echo $username_e ?><?php echo form_error('username'); ?></font><?php echo form_input('username', $username) ?></td>
                </tr>
                <tr>
                    <td>Email:<font color="#CA0000">*</font></td>
                    <td><font color="red"><?php echo $email_e ?><?php echo form_error('email'); ?></font><font color="red"><?php echo form_error(); ?></font><?php echo form_input('email', $email) ?></td>
                </tr>
                <tr>
                    <td>Password:<font color="#CA0000">*</font></td>
                    <td><font color="red"><?php echo form_error('password'); ?></font><?php echo form_password('password') ?></td>
                </tr>
                <tr>
                    <td>Ulangi Password:<font color="#CA0000">*</font></td>
                    <td><font color="red"><?php echo form_error('verify_password'); ?></font><?php echo form_password('verify_password') ?></td>
                </tr>
                <tr>
                    <td>Alamat:</td>
                    <?php
                    $attributes = array(
                        'name' => 'address',
                        'cols' => '30',
                        'rows' => '5',
                        'id' => 'address',
                        'value' => $address,
                    );
                    ?>
                    <td><?php echo form_textarea($attributes) ?></td>
                </tr>
                <tr>
                    <td>Telpon rumah:</td>
                    <td><?php echo form_input('home_phone', $home_phone) ?></td>
                </tr>
                <tr>
                    <td>Hp:<font color="#CA0000">*</font></td>
                    <td><font color="red"><?php echo form_error('mobile_phone'); ?></font><?php echo form_input('mobile_phone', $mobile_phone) ?></td>
                </tr>
                <tr>
                    <td>Negara:</td>
                    <td><?php echo form_input('country', $country) ?></td>
                </tr>
                <tr>
                    <td>Kota:</td>
                    <td><?php echo form_input('city', $city) ?></td>
                </tr>
                <tr>
                    <td>Provinsi:</td>
                    <td><?php echo form_input('state', $state) ?></td>
                </tr>
                <tr>
                    <td>Kode Pos:</td>
                    <td><?php echo form_input('zip_code', $zip_code) ?></td>
                </tr></tbody>
            <tr>
                <td>Captcha</td>
                <td>
                    <font color="red">
                       <?php echo  $wrong ?><br />
                    </font>
                    <?php
                    echo($captcha);
                    ?>
                </td>
            </tr></tbody>
        </table>

        <table class="table table-hover">
            <thead>
                <tr>
                    <td><?php echo form_submit('submit', 'Register', "class='btn'") ?></td>
                </tr></thead>
        </table>

        <?php echo form_close() ?>
    </div>
</div>